package {
	import com.ecity.events.PageEvent;
	import com.ecity.panels.SpinPanel;
	import com.ecity.util.Resources;
	import com.ecity.view.PageView;
	import flash.display.Sprite;
	import flash.events.Event;
	import com.ecity.view.Viewer3d
	
	/**
	 * ...
	 * @author Yicheng.Zhang
	 */
	public class Main extends Sprite {
		private var page:PageView;
		
		public function Main():void {
			initResource();
		}
				/**
		 * =======[INTERFACE] =======
		 * 
		 */
		private function initResource():void {
			page = new PageView();
			this.addChild(page);
			Resources.startLoad(onSourceHandler);
		}
		/**---------------[INTERFACE] 
		 * 加载资源情况下各种判断
		 */
		private function onSourceHandler():void {
			if (arguments[0] == Resources.INIT_UI) {
				page.initPage();
			}else if (arguments[0] == Resources.PROGRESS) {
				
			}else {
				
			}
		}
		
	}
	
}